using System;
using System.Collections.Generic;

namespace DemoWebapi01.Models
{
    /// <summary>
    /// 创建问题的请求模型
    /// </summary>
    public class QuestionCreateRequest
    {
        public string Content { get; set; }
        public string QuestionType { get; set; } = "single_choice";
        public string Difficulty { get; set; } = "medium";
        public string Explanation { get; set; }
        public Guid CategoryId { get; set; }
        public List<QuestionOptionRequest> Options { get; set; } = new List<QuestionOptionRequest>();
    }

    /// <summary>
    /// 更新问题的请求模型
    /// </summary>
    public class QuestionUpdateRequest
    {
        public string Content { get; set; }
        public string QuestionType { get; set; }
        public string Difficulty { get; set; }
        public string Explanation { get; set; }
        public Guid? CategoryId { get; set; }
        public List<QuestionOptionRequest> Options { get; set; } = new List<QuestionOptionRequest>();
    }

    /// <summary>
    /// 问题选项请求模型
    /// </summary>
    public class QuestionOptionRequest
    {
        public string Content { get; set; }
        public string? ContentCN { get; set; }
        public bool IsCorrect { get; set; } = false;
    }
}